package com.lbt.javaSE.gragh;

import com.lbt.javaSE.gragh.impl.GraghList;

import java.util.HashSet;
import java.util.List;
import java.util.Set;

//图采用  邻接表实现
public interface Gragh<V,E> {
    int VertexSize();
    int EdgeSize();
    public void addVertex(V v);
    public boolean deleteVertex(V v);
    public void addEdge(V in,V to,E weight);
    public void addEdge(V in,V to);
    public boolean deleteEdge(V in,V to);
    public void bfs(V v);



}
